package com.yzq.service;

import com.yzq.enums.BusinessType;
import com.yzq.model.entity.VerificationCode;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author yezhi
* @description 针对表【verification_code(验证码表)】的数据库操作Service
* @createDate 2025-06-29 07:57:44
*/
public interface VerificationCodeService extends IService<VerificationCode> {

    /**
     * 发送验证码
     * @param userIdentifier 用户标识
     * @param businessType 业务类型
     */
    void sendVerificationCode(String userIdentifier, BusinessType businessType);

    /**
     * 校验验证码
     * @param userIdentifier 用户标识
     * @param businessType 业务类型
     * @param code 验证码
     * @return 是否校验成功
     */
    Boolean verifyVerificationCode(String userIdentifier, BusinessType businessType, String code);

}
